<template>
  <div style="width: 1100px; margin: 0 auto">
    <a-alert type="info" show-icon>
      <span slot="message" style="font-size: 12px">
        了解更多订单违规管理规则，请查看<a
          href="https://school.jinritemai.com/doudian/web/article/101706?from=shop_article"
          target="_blank">《商家发货行为管理规则》</a>；若对处罚有异议，虚假发货、揽件超时违规可直接在线申诉，
        超时发货违规需要通过邮件申诉，详见<a href="https://opendoc.jinritemai.com/rules/2599/22909/" target="_blank">《违规申诉管理规则》</a>
      </span>
    </a-alert>
    <div style="margin-top: 16px;background-color: #ffffff;padding: 24px">
      <a-row
        type="flex"
        justify="center"
        align="middle">
        <a-col :span="22" style="border-right: 1px #dddddd solid;">
          <a-form layout="inline">
            <a-row>
              <a-col :span="12">
                <a-form-item label="下单时间">
                  <a-range-picker
                    :show-time="{ format: 'HH:mm:ss' }"
                    format="YYYY-MM-DD HH:mm:ss"
                    :placeholder="['选择开始时间', '选择结束时间']"
                  />
                </a-form-item>
              </a-col>
              <a-col :span="12">
                <a-form-item label="违规时间">
                  <a-range-picker
                    :show-time="{ format: 'HH:mm:ss' }"
                    format="YYYY-MM-DD HH:mm:ss"
                    :placeholder="['选择开始时间', '选择结束时间']"
                  />
                </a-form-item>
              </a-col>
            </a-row>
            <a-row style="margin-top: 12px">
              <a-col :span="8">
                <a-form-item label="违规类型">
                  <a-select default-value="00" style="width: 200px">
                    <a-select-option value="00">
                      全部
                    </a-select-option>
                    <a-select-option value="01">
                      虚假发货
                    </a-select-option>
                    <a-select-option value="02">
                      超时发货
                    </a-select-option>
                    <a-select-option value="03">
                      揽件超时
                    </a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
              <a-col :span="8">
                <a-form-item label="判罚原因">
                  <a-select default-value="00" style="width: 200px" disabled>
                    <a-select-option value="00">
                      全部
                    </a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
              <a-col :span="8">
                <a-form-item label="违规判定">
                  <a-select default-value="00" style="width: 200px" disabled>
                    <a-select-option value="00">
                      全部
                    </a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
            </a-row>
            <a-row style="margin-top: 12px">
              <a-col :span="8">
                <a-form-item label="违规结果">
                  <a-select default-value="00" style="width: 200px" disabled>
                    <a-select-option value="00">
                      全部
                    </a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
              <a-col :span="8">
                <a-form-item label="申诉状态">
                  <a-select default-value="00" style="width: 200px" disabled>
                    <a-select-option value="00">
                      全部
                    </a-select-option>
                    <a-select-option value="01">
                      未申诉
                    </a-select-option>
                    <a-select-option value="02">
                      申诉中
                    </a-select-option>
                    <a-select-option value="03">
                      申诉成功
                    </a-select-option>
                    <a-select-option value="04">
                      申诉失败
                    </a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
              <a-col :span="8">
                <a-form-item label="订单号">
                  <a-input placeholder="请输入违规订单号" style="width: 200px"/>
                </a-form-item>
              </a-col>
            </a-row>
            <a-row style="margin-top: 12px">
              <a-col :span="8">
                <a-form-item label="快递单号">
                  <a-input placeholder="请输入违规快递单号" style="width: 200px"/>
                </a-form-item>
              </a-col>
            </a-row>
          </a-form>
        </a-col>
        <a-col :span="2" style="text-align: center">
          <div>
            <a-button type="primary">查 询</a-button>
          </div>
          <div style="margin-top: 8px">
            <a-button>重 置</a-button>
          </div>
        </a-col>
      </a-row>
      <div style="margin: 16px 0;overflow: hidden">
        <div style="float: right">
          <a-button>导出结果</a-button>
          <a-button disabled style="margin-left: 8px">批量申诉</a-button>
        </div>
      </div>
      <a-table :columns="columns" :data-source="data"></a-table>
    </div>
  </div>
</template>

<script>
  const columns = [
    {
      title: '违规订单号',
      dataIndex: 'name',
      key: 'name'
    },
    {
      title: '违规快递单号',
      dataIndex: 'age',
      key: 'age'
    },
    {
      title: '违规时间',
      dataIndex: 'address',
      key: 'address 1'
    },
    {
      title: '违规类型',
      dataIndex: 'address',
      key: 'address 2'
    },
    {
      title: '判罚原因',
      dataIndex: 'address',
      key: 'address 2'
    },
    {
      title: '违规判定',
      dataIndex: 'address',
      key: 'address 2'
    },
    {
      title: '违规结果',
      dataIndex: 'address',
      key: 'address 2'
    },
    {
      title: '处罚时间',
      dataIndex: 'address',
      key: 'address 2'
    },
    {
      title: '申诉状态',
      dataIndex: 'address',
      key: 'address 2'
    },
    {
      title: '操作',
      dataIndex: 'address',
      key: 'address 3'
    }
  ]
  const data = []
  export default {
    name: 'DealViolation',
    data () {
      return {
        data,
        columns
      }
    }
  }
</script>

<style>
  .ant-form-item-label {
    width: 100px !important;
    text-align: right !important;
  }

  .ant-col-12 > .ant-form-item {
    margin-right: 0px !important;
  }
</style>
